%% Assignment 2.2
% Data not imported correctly

clearvars;close all;clc;

load data
indexDate   = 2;
indexRain   = 15; % not correct!

%% 1)	Make a double mass plot for the data of the two stations.
% Timeframe choosen is 1995 - 2005
iRdam       = find(RdamRaw(:,indexDate)>=19950000 & RdamRaw(:,2)<=20060000);
RdamData    = RdamRaw(iRdam,indexRain)./10; % [mm]
RdamData(RdamData<0)=0; % <.05 of rainfall is indicated with -1

iHvH       = find(HvHRaw(:,2)>=19950000 & HvHRaw(:,2)<=20060000);
HvHData    = HvHRaw(iHvH,indexRain)./10; % [mm]
HvHData(HvHData<0)=0; % <.05 of rainfall is indicated with -1

%% 2)	Make a residual mass plot for the data of the two stations.


%% 3)	Draw your conclusions on similarity of the data 
